package com.tocici.domain;

import org.dromara.common.mybatis.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

/**
 * 用户行为对象 user_behavior
 *
 * @author zeratul
 * @date 2025-03-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("user_behavior")
public class UserBehavior extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId(value = "behavior_id")
    private Long behaviorId;

    /**
     *
     */
    private Long userId;

    /**
     *
     */
    private Long musicId;

    /**
     * 播放数
     */
    private Integer playCount;

    /**
     * 喜欢;0-喜欢、1-不喜欢
     */
    private Integer isLiked;

    /**
     * 命中分类;是否在用户喜欢的分类里
     */
    private Integer inCateCollect;

    /**
     * 分数;结果为播放数*权重+喜欢*权重+命中分类*权重的和
     */
    private double score;

    /**
     *
     */
    private Integer isDeleted;

    private String username;

    private Integer duration;

    private String title;


}
